// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
        animate: {
            type: cc.Animation,
            default: null
        },
		

    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
		
		this.node.active=false;
		
		
	},
	
	Show:function() {
		this.node.active=true;
	        this.animate.play("scaleToShow");
	},
	Hide:function() {
	        this.animate.play("scaleToHide");
	},
		
		
    start () {
		
		
    },

    // update (dt) {},
});

